package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.ReturnRecordDetailBean

class ReturnDetailAdapetr:BaseQuickAdapter<ReturnRecordDetailBean,BaseViewHolder>(R.layout.item_return_detail_layout) {
    override fun convert(holder: BaseViewHolder, item: ReturnRecordDetailBean) {
        holder.setText(R.id.tvCode,"${getItemPosition(item)+1}")
        holder.setText(R.id.tvSampleName,item.rfidSample.name)
        holder.setText(R.id.tvSampleLocation,item.rfidSample.detailLocation)
    }
}
